<?php 
$AppId = 'wx22f4b6a65bfbc4fa';
$AppSecret = '32374d91b71535c9a50ed2c2f63b6dec';
$arr = file_get_contents("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=$AppId&secret=$AppSecret");
$result = json_decode($arr);
echo '权益部微信的access token为：'.$result->access_token;
?>